package cn.tedu.application.pojo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class Application {
    @ApiModelProperty(value = "申请表id")
    private Long id;
    @ApiModelProperty(value = "请假人姓名")
    private String username;
    @ApiModelProperty(value = "申请人id")
    private Long uid;
    @ApiModelProperty(value = "开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date stime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty(value = "结束时间")
    private Date etime;
    @ApiModelProperty(value = "请假理由")
    private String reason;
    @ApiModelProperty(value = "备注")
    private String rmark;
    @ApiModelProperty(value = "请假类型")
    private String type;
    @ApiModelProperty(value = "拒绝原因")
    private String rejectReason;
    @ApiModelProperty(value = "请假材料")
    private String imgUrl;
    @ApiModelProperty(value = "申请状态")
    private String status;
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
    @ApiModelProperty(value = "审批人id集合")
    private List<Long> auditUserIdList;//[106,103]
    @ApiModelProperty(value = "审批人姓名,字符串分隔")
    private String auditUsernameList;//"moly,tom"
}
